package com.AndroidApp.codememo;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class CreatePswd extends Activity {
	
	EditText crtpswd;
	
	Intent intent = new Intent(); 
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.createpswd);
		crtpswd = (EditText) findViewById(R.id.create_pswrd);

		}
	
	public void onClickConfirm(View v) {
        // Perform action on click
		
            SharedPreferences myMemos = getSharedPreferences("myMemos", MODE_WORLD_READABLE);  
            SharedPreferences.Editor prefEditor = myMemos.edit();  
            prefEditor.putString("MY_PASSWORD", crtpswd.getText().toString());  
            prefEditor.commit();  
            
            intent.setClass(this,CodeMemoAppActivity.class);
        	startActivity(intent);
        

    }
}